{% extends 'dcim/device/components_base.html' %}
{% load i18n %}

{% block bulk_extra_controls %}
    {{ block.super }}
    {% if perms.dcim.add_devicebay %}
        <div class="btn-group" role="group">
            <a href="{% url 'dcim:devicebay_add' %}?device={{ object.pk }}&return_url={% url 'dcim:device_devicebays' pk=object.pk %}"
               class="btn btn-primary">
                <i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Device Bays" %}
            </a>
        </div>
    {% endif %}
{% endblock bulk_extra_controls %}
